package hcn.protocol.brandnew.dengji.bingli;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 健康记录列表查询-响应消息(成功） - ODS_02100003_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class NatSubmitResponse {

    /**
     * 健康记录List
     */
    @XmlElementWrapper(name = "RecordsLists")
    @XmlElement(name = "RecordsList")
    private List<RecordsList> recordsLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class RecordsList {

        /**
         * 就诊日期
         */
        @XmlElement(name = "VisitDateTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date visitDateTime;
        /**
         * 患者在医院的唯一识别号
         */
        @XmlElement(name = "SourcePatientId")
        private String sourcePatientId;
        /**
         * 患者姓名
         */
        @XmlElement(name = "Name")
        private String name;
        /**
         * 患者费用性质代码
         */
        @XmlElement(name = "PatientProperties")
        private String patientProperties;
        /**
         * 年龄
         */
        @XmlElement(name = "PatientAge")
        private String patientAge;
        /**
         * 就诊医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 就诊机构名称
         */
        @XmlElement(name = "VisitOrganizationName")
        private String visitOrganizationName;
        /**
         * 科室代码
         */
        @XmlElement(name = "VisitDeptId")
        private String visitDeptId;
        /**
         * 科室名称
         */
        @XmlElement(name = "VisitDeptName")
        private String visitDeptName;
        /**
         * 责任医师代码
         */
        @XmlElement(name = "ResponsibilityDoctorId")
        private String responsibilityDoctorId;
        /**
         * 责任医师姓名
         */
        @XmlElement(name = "ResponsibilityDoctor")
        private String responsibilityDoctor;
        /**
         * 门诊类型
         */
        @XmlElement(name = "OutpatientType")
        private Byte outpatientType;
        /**
         * 门诊类型名称
         */
        @XmlElement(name = "OutpatientTypeName")
        private Byte outpatientTypeName;
        /**
         * 疾病诊断编码
         */
        @XmlElement(name = "DiagnoseCode")
        private String diagnoseCode;
        /**
         * 患者类型代码
         */
        @XmlElement(name = "PatientType")
        private String patientType;
        /**
         * 就诊序号
         */
        @XmlElement(name = "VisitId")
        private String visitId;
        /**
         * 门诊号码
         */
        @XmlElement(name = "ClinicId")
        private String clinicId;
        /**
         * 住院号
         */
        @XmlElement(name = "HospizationId")
        private String hospizationId;
    }

}
